package com.cs.contract.service.impl;

import com.cs.contract.service.CsInventoryService;
import com.cs.contract.domain.CsInventory;
import com.cs.contract.mapper.CsInventoryMapper;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Author：zrx
 * @Package：com.cs.service.impl
 * @Project：RuoYi-Cloud
 * @name：CsInventoryServiceImpl
 * @Date：2024/11/18 19:25
 * @Filename：CsInventoryServiceImpl
 */
@Service
public class CsInventoryServiceImpl implements CsInventoryService {
    private final CsInventoryMapper csInventoryMapper;

    public CsInventoryServiceImpl(CsInventoryMapper csInventoryMapper) {
        this.csInventoryMapper = csInventoryMapper;
    }

    @Override
    public List<CsInventory> listCsInventory(CsInventory csInventory) {
        return csInventoryMapper.listCsInventory(csInventory);
    }

    @Override
    public Integer deleteCsInventoryByEid(Integer eid) {
        return csInventoryMapper.deleteCsInventoryByEid(eid);
    }

    @Override
    public Integer insertCsInventory(CsInventory csInventory) {
        return csInventoryMapper.insertCsInventory(csInventory);
    }

    @Override
    public Integer deleteCsInventoryByOid(Integer oid) {
        return csInventoryMapper.deleteCsInventoryByOid(oid);
    }
}
